

        var watchSelect = null;
        for(var s = 0;s < $('main .swiperList .swiperBox').length;s++){
            $('main .swiperList .swiperBox')[s].ind = s;
            var oriInner = $('main .swiperList .swiperBox:eq(' + s +')').find('.itmInfSwiper .swiper-wrapper').html();
            $('main .swiperList .swiperBox')[s].ori = oriInner;
        }

        var itmInfSwiper = new Swiper('.itmInfSwiper',{
            loop:true,
        })
        var scaleSwiper = new Swiper('.scaleSwiper',{
            loop:true,
        })
        function exclusiveActions(){
            for(var hl = 0;hl < $('.horLine').length;hl++){
                if(hl % 2 != 0){
                    transformTwice($('.horLine:eq(' + hl + ')'),210,'translateX');
                }else{
                    transformTwice($('.horLine:eq(' + hl + ')'),-210,'translateX');
                }
            }
        }
        var updateDesc = null;
        $(document).ready(function(){
            
            $('main .swiper .contn .swiperBox .btns p').click(function(){
                var index = $(this).parents('.swiperBox')[0].ind;
                if($(this)[0].className.indexOf('prev') >= 0){
                    itmInfSwiper[index].slidePrev();
                }else{
                    itmInfSwiper[index].slideNext();
                }
            })
            var linkNow = window.location.href;
            for(var l = 0;l < $('main .classify .contn.pc .c').length;l++){
                var href = $('main .classify .contn.pc .c')[l].getAttribute('href').split('.')[0];
                if(linkNow.indexOf(href) >= 0){
                    $('main .classify .contn.pc .c:eq(' + l +')').addClass('active');
                    $('main .classify .contn.mobile select').val($('main .classify .contn.pc .c:eq(' + l +') p').text());
                    break;
                }else if(linkNow.indexOf('project') >= 0 && href.indexOf('project') >= 0){
                    $('main .classify .contn.pc .c:eq(' + l +')').addClass('active'); 
                    break
                }
            }
            watchWindowWidth = setInterval(function(){
                if(window.innerWidth >= 1024 && itmInfSwiper[0].params.spaceBetween != 0){
                    for(var s = 0;s < $('main .swiper .contn .itmInfSwiper').length;s++){
                        console.log(s);
                        itmInfSwiper[s].params.spaceBetween = 0;
                        itmInfSwiper[s].update();
                    }
                }else if(window.innerWidth < 1024 && itmInfSwiper[0].params.spaceBetween != 15){
                    for(var s = 0;s < $('main .swiper .contn .itmInfSwiper').length;s++){
                        console.log(s);
                        itmInfSwiper[s].params.spaceBetween = 15;
                        itmInfSwiper[s].update();
                    }
                }
                if(window.innerWidth != consultWidth){
                    consultWidth = window.innerWidth;
                }
            },10)

            $('main .swiper .contn .itmInfSwiper').click(function(){
                clearInterval(updateDesc);
                $(this).addClass('current');
                var index = $(this).parents('.swiperBox')[0].ind;
                itmInfSwiper[index].params.loop = false;
                itmInfSwiper[index].update();
                $('main .scalePalace .box .details h3')[0].innerText = $(this).parents('.contn').find('.name').text();
                $('.scaleSwiper .swiper-wrapper')[0].innerHTML =  $(this).parents('.swiperBox')[0].ori;
                $('main .scalePalace .box .pages .length')[0].innerText = '0' + $(this).parents('.swiperBox')[0].length;
                scaleSwiper.destroy();
                scaleSwiper = new Swiper('.scaleSwiper',{
                    loop:true
                })
                var This = this;
                setTimeout(function(){
                    var ind = parseInt($(This).find('.swiper-slide-active').attr('data-swiper-slide-index')) + 1;
                    console.log(ind);
                    scaleSwiper.slideTo(ind);
                },10)
                scaleSwiper.update();
                $('main .scalePalace').addClass('active');
                updateDesc = setInterval(function(){
                    $('main .scalePalace .box .details p')[0].innerText = $('.scaleSwiper').find('.swiper-slide-active .details').text();
                    $('main .scalePalace .box .pages .current')[0].innerText = '0' + (parseInt($('.scaleSwiper').find('.swiper-slide-active').attr('data-swiper-slide-index')) + 1);
                },10)
            })
            $('main .scalePalace .box .close').click(function(){
                var index = $('.itmInfSwiper.current').parents('.swiperBox')[0].ind;
                itmInfSwiper[index].params.loop = true;
                itmInfSwiper[index].update();
                $('main .scalePalace').removeClass('active');
            })

            $('main .scalePalace .box .btns p').click(function(){
                if($(this)[0].className.indexOf('prev') >= 0){
                    scaleSwiper.slidePrev();
                }else{
                    scaleSwiper.slideNext();
                }
            })
            watchSelect = setInterval(function(){
                var val = $('main .classify .contn.mobile select').val();
                for(var l = 0;l < $('main .classify .contn.pc .c').length;l++){
                    var txt = $('main .classify .contn.pc .c p')[l].innerText;
                    if(val.indexOf(txt) >= 0 && linkNow.indexOf($('main .classify .contn.pc .c:eq(' + l +')')[0].getAttribute('href')) < 0){
                        $('main .classify .contn.pc .c:eq(' + l +')')[0].click();
                        break;
                    }
                }
            },10)
            $('main .classify .contn.mobile select option').click(function(){
                var jump = $(this).text();
                console.log(jump);
                
            })
        })